#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>

int main()
{
	long a = 0, c = 0;
	int b = 0;

	scanf("%ld", &a);
	for (int k = 1; a != 0; k *= 10)
	{
		b = a % 10;
		b %= 2;
		c += b * k;
		a /= 10;
	}
	printf("%ld", c);

	return 0;
}